package com.mengxuegu.springcloud.entities;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-10-21 16:14
 * @notify
 * @version 1.0
 */

import java.io.Serializable;

public class Product implements Serializable {
    private Long pid;//主键
    private String productName;//产品名称
    //来自哪个数据库,因为微服务可以一个服务对应一个数据库,同一个信息被存储到不同数据库
    private String dbSource;

    public Product() {
    }

    public Product(String productName) {
        this.productName = productName;
    }

    public Product(Long pid, String productName, String dbSource) {
        this.pid = pid;
        this.productName = productName;
        this.dbSource = dbSource;
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getDbSource() {
        return dbSource;
    }

    public void setDbSource(String dbSource) {
        this.dbSource = dbSource;
    }
}
